package com.ten.mall.service;

import java.util.List;
import java.util.Map;

import com.ten.mall.vo.ItemOrder;
import com.ten.mall.vo.OrderReturnVo;
import com.ten.mall.vo.OrderVo;
import com.ten.mall.vo.TimeVo;
import com.ten.mall.vo.UserAnalysis;
import com.ten.mall.vo.YaopinSellResult;

public interface ItemOrderService {
	Map<String,Object> selectByPages(Integer start,Integer size,OrderVo vo);
	String insertOrder(ItemOrder ItemOrder);
	ItemOrder selectById(String id);
	
	List<OrderReturnVo> selectByDefindId(OrderVo vo);
	int updateOrderState(String id,Integer state);
	int deleteOrder(String id);
	int updataOrder(ItemOrder ItemOrder);
	int creatOrder(ItemOrder ItemOrder);
	int crateOrderUpdateItem(ItemOrder ItemOrder);
	List<ItemOrder> listItemOrder(String userId,
								  Integer start,Integer size);
	
	List<ItemOrder> listItemOrderVo(OrderVo vo,Integer start,Integer size);
	
	List<ItemOrder> listItemState(Integer s1,Integer s2,Integer start,Integer size,String userId);
	
	Map<String,Object> selectByDianyuan(Integer start,Integer size,TimeVo vo);
	
	int updateYaodianKucun(Map<String, Integer> map,ItemOrder itemOrder);
	
	int refuseOrder(ItemOrder itemOrder);
	
	List<ItemOrder> selectByPrapare(String orderPrepare);
	
	Map<String,Object> listItemTimeVo(Integer start,Integer size,TimeVo vo) throws Exception; 
	
	List<UserAnalysis> selectUserAnlaysizy(Integer start,Integer size,String myDate);
	
	List<YaopinSellResult> selectSumGoods(Integer start,Integer size,String myDate);
	
	Map<String,Object> selectByDoctor(Integer start,Integer size,Map<String,String> map);
	
	Map<String,Object> selectByYaodian(Integer start,Integer size,Map<String,String> map);
	
	Map<String,Object> selectBySaleMan(Integer start,Integer size,Map<String,String> map);
	
	Map<String,Object> selectFenxiAll(Integer start,Integer size,Map<String,String> map);
	
	Map<String, Object> doctorSelectById(Integer start,Integer size,TimeVo vo);
}
